<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            border: rgb(70, 62, 62) 1px solid;
            margin: 0 auto;
            transition: transform 1s,hight 1s,width 1s;
            transform-origin: 0 0;
            }
        .box:hover{
            transform: rotate(360deg);
            width: 400px;
            height: 400px;
        }
    </style>
</head>
<body>
    <div class="box">
        hello
    </div>
</body>
</html>